package com.googlecode.wmlynar.javadoctc.maven;

import java.io.IOException;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * A Mojo for generating javadoc test coverage reports.
 * 
 * @author Wojciech Mlynarczyk
 * @goal generate
 * @phase generate-sources
 * @requiresDependencyResolution compile
 */
public class JavadocReportMojo extends AbstractMojo {

    /**
     * @parameter expression="${basedir}/src/main/java"
     * @required
     */
    private String sourceDirectory;

    /**
     * @parameter expression="${basedir}/src/test/java"
     * @required
     */
    private String testsDirectory;
    
    /**
     * @parameter expression="${basedir}/target/reports/javadoc-test-coverage"
     * @required
     */
    private String targetDirectory;

    public void execute() throws MojoExecutionException, MojoFailureException {
    	//try {
		//    JavadocCoverage.generateReports(sourceDirectory, testsDirectory, targetDirectory);
		//} catch (IOException e) {
        //    throw new MojoExecutionException(e.toString());
        //}
    }
}
